package filter

import "ezcloud/gw/pkg/route"

type Filter interface {
	Filter(context *route.RouteContext, chain route.RouteFilterChain)
}

type RouteFilterFunc func(context *route.RouteContext, chain route.RouteFilterChain)

func (f RouteFilterFunc) Filter(context *route.RouteContext, chain route.RouteFilterChain) {
	f(context, chain)
}
